﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Detail.aspx.vb" Inherits="TheNewDesigner._1Detail" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <p>
    <br />
   <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="DesignerID" DataSourceID="SqlDataSource1">
        <Columns>
            <asp:ImageField DataImageUrlField="ProfilePicture" HeaderText="Profile Pic">
                <ControlStyle CssClass="ProfilePic" />
            </asp:ImageField>
            <asp:BoundField DataField="FirstName" HeaderText="First Name" 
                SortExpression="FirstName" />
            <asp:BoundField DataField="LastName" HeaderText="Last Name" 
                SortExpression="LastName" />
            <asp:BoundField DataField="Gender" HeaderText="Gender" 
                SortExpression="Gender" />
            <asp:BoundField DataField="DateOfBirth" HeaderText="Date Of Birth" 
                SortExpression="DateOfBirth" />
            <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
            <asp:BoundField DataField="BasicInfo" HeaderText="Basic Info" 
                SortExpression="BasicInfo" />
        </Columns>
    </asp:GridView>
</p>
    <p>
        <asp:Button ID="Button1" runat="server" Text="View Gallery" />
    </p>
    <p>
        <asp:ImageButton ID="btn_like" runat="server" Height="27px" 
            ImageUrl="~/Pictures/_like_button.jpg" Width="71px" />
        <asp:Image ID="img1" runat="server" ImageUrl="~/Pictures/_liked_button.jpg" />
        <asp:Image ID="img_like" runat="server" Height="27px" 
            ImageUrl="~/Pictures/_like_button.jpg" Width="73px" />
        
    </p>
    <p>
    </p>
    
    <p>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:DesignerConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:DesignerConnectionString.ProviderName %>" 
        SelectCommand="SELECT [DesignerID], [FirstName], [LastName], [Gender], [DateOfBirth], [ProfilePicture], [Email], [BasicInfo] FROM [UserProfile] WHERE ([DesignerID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="DesignerID" QueryStringField="DesignerID" 
                Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ID" DataSourceID="SqlDataSource2" Width="493px">
            <Columns>
                <asp:BoundField DataField="Author" HeaderText="Username" 
                    SortExpression="Author" />
                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                <asp:BoundField DataField="CommentBody" HeaderText="Comment" 
                    SortExpression="CommentBody" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:DesignerConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:DesignerConnectionString.ProviderName %>" 
            
            SelectCommand="SELECT [ID], [Author], [Title], [CommentBody], [Designer_fkID] FROM [Comment] WHERE ([Designer_fkID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="Designer_fkID" QueryStringField="DesignerID" 
                    Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
</p>
    <p>
        &nbsp;</p>
    <p>
        </p>
        
    <asp:Rating ID="Rating1" runat="server" EmptyStarCssClass="empty" 
        FilledStarCssClass="smiley-done" StarCssClass="smiley" WaitingStarCssClass="empty"
        MaxRating="5" CurrentRating="3">
    </asp:Rating>
    <br />
    <br />
    <p>
        <asp:Button ID="Button2" runat="server" Text="Save Rating" />
</p>
    <p>
        </p>
    
    <p>
        Title&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        <asp:TextBox ID="tb_title" runat="server" 
            Height="21px" Width="535px"></asp:TextBox>
</p>
    <p>
        <asp:TextBox ID="tb_commentBody" runat="server" Height="238px" 
            TextMode="MultiLine" Width="584px"></asp:TextBox>
</p>
    <p>
        <asp:Button ID="btn_comment" runat="server" Text="Comment" />
</p>
    <p>
        &nbsp;</p>
<p>
</p>
</asp:Content>
